package com.cadre.system.domain.vo;


import java.util.ArrayList;
import java.util.List;

public class UnitTreeVo {

    /**
     * 标识
     */
    private String id;

    /**
     * 层级
     */
    private Integer treeLevel;

    /**
     * 名称
     */
    private String name;
    /**
     * 父标识
     */
    private String parentId;


    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTreeLevel() {
        return treeLevel;
    }

    public void setTreeLevel(Integer treeLevel) {
        this.treeLevel = treeLevel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<UnitTreeVo> getChildren() {
        return children;
    }

    public void setChildren(List<UnitTreeVo> children) {
        this.children = children;
    }

    /**
     * 子集
     */
    private List<UnitTreeVo> children = new ArrayList<>();

    public void addChild(UnitTreeVo child) {
        children.add(child);
    }

}
